package com.mygame.weapons

import javafx.util.Duration

open class BaseGun(
    var name: String = "普通子弹",
    var radius: Double = 300.0,//射击半径范围
    var shootSpeed: Int = 500,//射速
    var size: Double = 3.0,//子弹大小
    var isHuntTag: Boolean = false,//是否为追踪弹
    var harm: Int = 10,//伤害值
    var percentage: Double = 0.0//百分比伤害
) {
    fun getLifeTime(): Duration {
        return Duration.seconds(radius / shootSpeed)
    }
}